package com.example.repository;

import com.example.entity.QuartzJob;
import org.springframework.stereotype.Component;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;

@Component
public class QuartzJobRepository {
    public List<QuartzJob> findByIsPauseIsFalse() {
        QuartzJob quartzJob = QuartzJob.builder().id(1L).jobName("示例").beanName("demoTask").methodName("run").cronExpression("0/10 * * * * ?").isPause(false).build();
        return Arrays.asList(quartzJob);
    }
}
